function startWork(data) {
    $.ajax({
        url: CXL.ctxPath + '/work/startCraneTask',
        type: 'post',
        data: data,
        dataType: 'json',
        success: function (res) {
            if (res.success) {
                CXL.success("启动成功。");
            } else {
                CXL.error(res.msg);
            }
        },
        fail: function () {
            CXL.error("网络错误！");
        }
    });
}

function stopWork(data) {
    $.ajax({
        url: CXL.ctxPath + '/work/stopCraneTask',
        type: 'post',
        data: data,
        dataType: 'json',
        success: function (res) {
            if (res.success) {
                CXL.success("启动成功。");
            } else {
                CXL.error(res.msg);
            }
        },
        fail: function () {
            CXL.error("网络错误！");
        }
    });
}